<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1lrta4f" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.11.1" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
  <bpmn:process id="process" isExecutable="true">
    <bpmn:startEvent id="StartEvent_1" camunda:asyncBefore="true">
      <bpmn:outgoing>Flow_0ztsamz</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:sequenceFlow id="Flow_0ztsamz" sourceRef="StartEvent_1" targetRef="user-task" />
    <bpmn:userTask id="user-task" name="do stuff">
      <bpmn:incoming>Flow_0ztsamz</bpmn:incoming>
      <bpmn:outgoing>Flow_0zfgvhv</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:endEvent id="Event_0fqijg1">
      <bpmn:incoming>Flow_0zfgvhv</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_0zfgvhv" sourceRef="user-task" targetRef="Event_0fqijg1" />
    <bpmn:subProcess id="sub-process" triggeredByEvent="true">
      <bpmn:sequenceFlow id="Flow_0zriw6o" sourceRef="Event_1dubjiz" targetRef="external-task" />
      <bpmn:serviceTask id="external-task" name="foo external" camunda:type="external" camunda:topic="foo">
        <bpmn:incoming>Flow_0zriw6o</bpmn:incoming>
        <bpmn:outgoing>Flow_16nb0ew</bpmn:outgoing>
      </bpmn:serviceTask>
      <bpmn:endEvent id="Event_0oqu30f">
        <bpmn:incoming>Flow_16nb0ew</bpmn:incoming>
      </bpmn:endEvent>
      <bpmn:sequenceFlow id="Flow_16nb0ew" sourceRef="external-task" targetRef="Event_0oqu30f" />
      <bpmn:startEvent id="Event_1dubjiz" isInterrupting="false">
        <bpmn:outgoing>Flow_0zriw6o</bpmn:outgoing>
        <bpmn:messageEventDefinition id="MessageEventDefinition_1ddzhf6" messageRef="Message_07k7crm" />
      </bpmn:startEvent>
    </bpmn:subProcess>
  </bpmn:process>
  <bpmn:message id="Message_07k7crm" name="start_sub" />
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="process">
      <bpmndi:BPMNEdge id="Flow_0zfgvhv_di" bpmnElement="Flow_0zfgvhv">
        <di:waypoint x="370" y="117" />
        <di:waypoint x="432" y="117" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0ztsamz_di" bpmnElement="Flow_0ztsamz">
        <di:waypoint x="215" y="117" />
        <di:waypoint x="270" y="117" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="179" y="99" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1gezml9_di" bpmnElement="user-task">
        <dc:Bounds x="270" y="77" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0fqijg1_di" bpmnElement="Event_0fqijg1">
        <dc:Bounds x="432" y="99" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_097fvsy_di" bpmnElement="sub-process" isExpanded="true">
        <dc:Bounds x="160" y="190" width="350" height="200" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_16nb0ew_di" bpmnElement="Flow_16nb0ew">
        <di:waypoint x="390" y="290" />
        <di:waypoint x="452" y="290" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0zriw6o_di" bpmnElement="Flow_0zriw6o">
        <di:waypoint x="236" y="290" />
        <di:waypoint x="290" y="290" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Activity_1xeoqvo_di" bpmnElement="external-task">
        <dc:Bounds x="290" y="250" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0oqu30f_di" bpmnElement="Event_0oqu30f">
        <dc:Bounds x="452" y="272" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_03di37k_di" bpmnElement="Event_1dubjiz">
        <dc:Bounds x="200" y="272" width="36" height="36" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
